#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/7/14
# @Author  : LiJun
# @Email   : lijun@tianyancha.com
# @Version : 1.0.0

from mitmproxy import ctx

class Counter:
    def __init__(self):
        self.num = 0

    def request(self, flow):
        self.num += 1
        ctx.log.info(f"We've seed {self.num} flows")
        ctx.log.info(f"====================")

addons = [
    Counter()
]
